home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / Misc / GMS / GMSDev / Includes / graphics / pictures.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-30  |  2.0 KB  |  67 lines

  1. #ifndef GRAPHICS_PICTURES_H
  2. #define GRAPHICS_PICTURES_H TRUE
  3.  
  4. /*
  5. **  $VER: pictures.h V0.9B
  6. **
  7. **  Picture Definitions.
  8. **
  9. **  (C) Copyright 1996-1997 DreamWorld Productions.
  10. **      All Rights Reserved
  11. */
  12.  
  13. #ifndef DPKERNEL_H
  14. #include <dpkernel/dpkernel.h>
  15. #endif
  16.  
  17. /**************************************************************************/
  18.  
  19. #define PALETTE ((ID_PALETTE<<24)|(01<<16))
  20.  
  21. /***************************************************************************
  22. ** The picture structure for loading and depacking of pictures
  23. */
  24.  
  25. #define PICVERSION   1
  26. #define TAGS_PICTURE ((ID_SPCTAGS<<16)|ID_PICTURE)
  27.  
  28. struct Picture {
  29.   struct Head Head;      /* [00] Standard header structure */
  30.   struct Bitmap *Bitmap; /* [12] Bitmap details */
  31.   APTR   Header;         /* [16] Information header */
  32.   LONG   Options;        /* [20] IMG_VIDEOMEM, IMG_REMAP ... */
  33.   LONG   *Palette;       /* [24] Original palette */
  34.   APTR   Source;         /* [28] Filename for this picture, if any */
  35.   WORD   ScrMode;        /* [32] Intended screen mode for picture */
  36.   WORD   ScrHeight;      /* [34] Screen height */
  37.   WORD   ScrWidth;       /* [36] Screen width */
  38.  
  39.   /*** Private flags below ***/
  40.  
  41.   BYTE prvAFlags;      /* Private */
  42.   BYTE prvPad;         /* Private */
  43. };
  44.  
  45. /*** Picture Tags ***/
  46.  
  47. #define PCA_Bitmap     (TAPTR|12)
  48. #define PCA_Header     (TAPTR|16)
  49. #define PCA_Options    (TLONG|20)
  50. #define PCA_Palette    (TAPTR|24)
  51. #define PCA_Source     (TAPTR|28)
  52. #define PCA_ScrMode    (TWORD|32)
  53. #define PCA_ScrHeight  (TWORD|34)
  54. #define PCA_ScrWidth   (TWORD|36)
  55. #define PCA_BitmapTags (TSTEPIN|12)
  56.  
  57. /*** Image Flags ***/
  58.  
  59. #define IMG_RESIZEX     0x00000001   /* Allow resize on X axis */
  60. #define IMG_            0x00000002   /* */
  61. #define IMG_REMAP       0x00000004   /* Allow remapping */
  62. #define IMG_RESIZEY     0x00000008   /* Allow resize on Y axis */
  63. #define IMG_INITIALISED 0x80000000   /* This structure has been initialised */
  64. #define IMG_RESIZE      (IMG_RESIZEX|IMG_RESIZEY)
  65.  
  66. #endif /* GRAPHICS_PICTURES_H */
  67.